﻿@model GsifWeb4.Models.laget_gsif

    <h2>
 @{
  if (ViewBag.InfoText != null)
       {
            <text>@ViewBag.InfoText</text>
        }
     else
       {
            <text>Uppdatera din profil</text>
 }
    } 
    </h2>

    @{
        
    using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        
        <fieldset>
            <legend>Ändra profil</legend>
            <div class="editor-label">
                @Html.LabelFor(model => model.FNamn) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.FNamn)
                @Html.ValidationMessageFor(model => model.FNamn)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.ENamn)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.ENamn)
                @Html.ValidationMessageFor(model => model.ENamn) 
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.TfnNr)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.TfnNr)
                @Html.ValidationMessageFor(model => model.TfnNr) 
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.MobilNr) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.MobilNr)
                @Html.ValidationMessageFor(model => model.MobilNr)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.ArbNr)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.ArbNr)
                @Html.ValidationMessageFor(model => model.ArbNr)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Fodd) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Fodd)
                @Html.ValidationMessageFor(model => model.Fodd)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.Langd)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Langd)
                @Html.ValidationMessageFor(model => model.Langd)
            </div>

             <div class="editor-label">
                @Html.LabelFor(model => model.Vikt)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Vikt)
                @Html.ValidationMessageFor(model => model.Vikt)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Klubb)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Klubb)
                @Html.ValidationMessageFor(model => model.Klubb)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Motto)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Motto)
                @Html.ValidationMessageFor(model => model.Motto)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Bild) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Bild)
                @Html.ValidationMessageFor(model => model.Bild)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Anvandarnamn) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Anvandarnamn) 
                @Html.ValidationMessageFor(model => model.Anvandarnamn) 
            </div>
            
            <div class="editor-label">
                @Html.Label("Gammalt lösenord")
            </div>
            <div class="editor-field">
                @Html.Password("OldPassword")
                @Html.ValidationMessage("OldPassword")
            </div>

            <div class="editor-label">
                @Html.Label("Nytt lösenord")
            </div>
            <div class="editor-field">
                @Html.Password("NewPassword")
                @Html.ValidationMessage("NewPassword")
            </div>

            <div class="editor-label">
                @Html.Label("Upprepa lösenord") 
            </div>
            <div class="editor-field">
                @Html.Password("RepeatNewPassword")
                @Html.ValidationMessage("RepeatNewPassword")
            </div>

            <p>
                <input type="submit" value="Spara" class="btn"/>
            </p>
        </fieldset>

    }
    }

